(global.webpackJsonp = global.webpackJsonp || []).push([ [ "subpages/pages/invoice/edit_rise" ], {
    4513: function(t, e, n) {
        n.d(e, "b", function() {
            return i;
        }), n.d(e, "c", function() {
            return a;
        }), n.d(e, "a", function() {});
        var i = function() {
            this.$createElement, this._self._c;
        }, a = [];
    },
    "5b93": function(t, e, n) {},
    "69c1": function(t, e, n) {
        (function(t) {
            n("98af"), i(n("66fd"));
            var e = i(n("b212"));
            function i(t) {
                return t && t.__esModule ? t : {
                    default: t
                };
            }
            wx.__webpack_require_UNI_MP_PLUGIN__ = n, t(e.default);
        }).call(this, n("543d").createPage);
    },
    "70ba": function(t, e, n) {
        n.r(e);
        var i = n("e0a6"), a = n.n(i);
        for (var o in i) "default" !== o && function(t) {
            n.d(e, t, function() {
                return i[t];
            });
        }(o);
        e.default = a.a;
    },
    b212: function(t, e, n) {
        n.r(e);
        var i = n("4513"), a = n("70ba");
        for (var o in a) "default" !== o && function(t) {
            n.d(e, t, function() {
                return a[t];
            });
        }(o);
        n("eedc");
        var c = n("f0c5"), r = Object(c.a)(a.default, i.b, i.c, !1, null, "4d15c90b", null, !1, i.a, void 0);
        e.default = r.exports;
    },
    e0a6: function(t, e, n) {
        (function(t) {
            function n(t, e, n) {
                return e in t ? Object.defineProperty(t, e, {
                    value: n,
                    enumerable: !0,
                    configurable: !0,
                    writable: !0
                }) : t[e] = n, t;
            }
            Object.defineProperty(e, "__esModule", {
                value: !0
            }), e.default = void 0;
            var i = {
                components: {},
                data: function() {
                    var t;
                    return {
                        form: (t = {
                            title: "",
                            title_type: "",
                            taxpayer_id: ""
                        }, n(t, "title_type", 1), n(t, "company_address", ""), n(t, "contact", ""), n(t, "deposit_bank", ""), 
                        n(t, "bank_id", ""), n(t, "taker_name", ""), n(t, "taker_phone", ""), n(t, "taker_address", ""), 
                        n(t, "taker_email", ""), n(t, "remarks", ""), t),
                        activeTab: 0,
                        ttType: 0,
                        openMore: !1,
                        defaultRegion: [ {
                            name: "北京市"
                        }, {
                            name: "北京市"
                        }, {
                            name: "东城区"
                        } ]
                    };
                },
                onLoad: function(t) {
                    t.id && this.getInfo(t.id);
                },
                methods: {
                    getInfo: function(t) {
                        var e = this;
                        this.$api.selectInvoiceTitById({
                            id: t
                        }, function(t) {
                            1 == t.code && (e.form = t.data, 1 == t.data.title_type ? e.ttType = 1 : e.ttType = 0);
                        });
                    },
                    handleGetRegion: function(t) {
                        this.posForward = t[0].name + t[1].name + t[2].name, this.defaultRegion = t;
                    },
                    submit: function() {
                        this.form.title ? 1 != this.ttType || this.form.taxpayer_id ? (this.form.title_type = this.ttType, 
                        this.$api.editInvoiceTit(this.form, function(e) {
                            t.showToast({
                                title: e.msg,
                                duration: 2e3,
                                icon: "1" == e.code ? "success" : "none"
                            }), setTimeout(function() {
                                "1" == e.code && t.navigateBack();
                            }, 1500);
                        })) : t.showToast({
                            title: "请填写纳税人识别号",
                            duration: 2e3,
                            icon: "none"
                        }) : t.showToast({
                            title: "请填写发票抬头",
                            duration: 2e3,
                            icon: "none"
                        });
                    },
                    changeTT: function(t) {
                        this.ttType = t;
                    }
                }
            };
            e.default = i;
        }).call(this, n("543d").default);
    },
    eedc: function(t, e, n) {
        var i = n("5b93");
        n.n(i).a;
    }
}, [ [ "69c1", "common/runtime", "common/vendor" ] ] ]);